package com.basics.channel.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.basics.channel.entity.CyChannelPermission;
import com.basics.channel.mapper.CyChannelPermissionMapper;
import com.basics.channel.service.CyChannelPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 频道权限表 服务实现类
 * </p>
 *
 * @author WangWei
 * @since 2025-03-09
 */
@Service
public class CyChannelPermissionServiceImpl extends ServiceImpl<CyChannelPermissionMapper, CyChannelPermission> implements CyChannelPermissionService {

    @Override
    public CyChannelPermission getByChannelId(Long channelId){
        return getOne(new QueryWrapper<CyChannelPermission>().eq("channel_id",channelId));
    }
}
